package testGroovy

def a = '123'
println a as double ?: 1.0
println a ?: 1.0 as double

def b = null
//println b as double ?: 1.0
println b ?: 1.0 as double
def c = (b ?: 1.0 as double)
println c * 100